/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.ac.iie.di.ban.ycl.st.load.util;

import org.apache.commons.codec.digest.DigestUtils;

/**
 *
 * @author wjt
 */
public class MD5Tools {

    public static String getMd5(String str) {
        if (str != null) {
            return DigestUtils.md5Hex(str);
        } else {
            return "";
        }
    }
    
    public static void main(String[] args) {
        String md5 = getMd5("97335281800a19d870b38e993afa828ba71e4602");System.out.println(md5);
    }
}
